<html>
 <head> 
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> 
  <title>登录</title> 
  <meta content="登录英盛网" name="keywords" /> 
  <meta content="登录英盛网" name="description" /> 
  <meta content="英盛网" name="author" /> 
  <!--JS文件-->

  <script src="../../../resources/static/commomsjs/commons.js"></script>
  <script src="../../../resources/static/js/jquery-1.9.1.min.js" type="text/javascript"></script>
  <script src="../../../resources/static/js/layer.min.js" type="text/javascript"></script>
  <link type="text/css" rel="stylesheet" href="../../../resources/static/css/layer.css" id="skinlayercss" />
  <script src="../../../resources/static/js/jquery.cookie.js" type="text/javascript"></script>
  <script src="../../../resources/static/js/onyx.js" type="text/javascript"></script>
  <script src="../../../resources/static/js/ys.login.merge.js"></script>
  <script src="../../../resources/static/commomsjs/commons.js"></script>

  <!--CSS文件--> 
  <link href="../../../resources/static/css/global.css" type="text/css" rel="stylesheet" />
  <link href="../../../resources/static/css/login.css" type="text/css" rel="stylesheet" />

  <!--vue-->
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.js"></script>
  <style type="text/css">

/*        .hidden { display: none; }*/
    </style> 
 </head> 
 <body>
 <div id="app">
  <div class="show_img_login hidden">
   <h2>扫二维码 快捷登录</h2> 
   <img class="login_code" src="" id="imgQRCode" /> 
   <a class="a3" href="javascript:void(0);" id="btnRefresh"><i class="i8"></i>刷新二维码</a> 
   <p class="p5">请使用APP“我的“右上角进行扫码登录</p> 
   <a class="close_layer"><i class="i9"></i></a> 
  </div> 
  <div class="fullSlide"> 
   <div class="bd"> 
    <ul style="position: relative; width: 1663px; height: 1000px;">
                
                <li style="background-image: url(../../../resources/static/images/banner_1.jpg); position: absolute; width: 1663px; left: 0px; top: 0px; display: none;"></li>
                
                <li style="background-image: url(../../../resources/static/images/banner_2.jpg); position: absolute; width: 1663px; left: 0px; top: 0px; display: none;"></li>
                
                <li style="background-image: url(../../../resources/static/images/banner_3.jpg); position: absolute; width: 1663px; left: 0px; top: 0px;"></li>
                
                <li style="background-image: url(../../../resources/static/images/banner_4.jpg); position: absolute; width: 1663px; left: 0px; top: 0px; display: none;"></li>
                
            </ul>
   </div> 
   <div class="middle_box"> 
    <img src="../../../resources/static/images/logo.png" />
    <div class="login_box"> 
     <h2><span>登录</span></h2>
     <ul> 
      <li class="li_01"> <i class="i1"></i><input type="text" v-model="userInfo.userAccount" placeholder="用户名" class="text_1" id="txtAccount" /> <span class="s4 hidden" id="lbAccount"><i class="i6"></i><span class="msg">找不到该帐号</span></span> </li>
      <li> <i class="i3"></i><input type="password" v-model="userInfo.userPass" placeholder="密码" class="text_2" id="txtPassword" /> <span class="s5 hidden" id="lbPassword"><i class="i7"></i><span class="msg">密码错误</span></span> </li>
     </ul> 
     <ol>
      <li><input type="button" @click="login" class="go_btn" value="登录">  </li>
<!--      <li class="li_02"> <span class="s2"><a href="javascript:void(0);" id="btnQQLogin"><i class="i4"></i>QQ登录</a></span> <span class="s3"><a href="javascript:void(0);" id="btnSinaLogin"><i class="i5"></i>微博登录</a></span> </li> -->
<!--      <li class="li_03"> <a class="find" href="http://sso.yingsheng.com/FindPassword/VerifyUserInfo.aspx">找回密码</a> <a style="display:none;" href="#">免费注册</a> </li> -->
<!--     </ol> -->
      <li><span>{{message}}</span></li>
     <input type="hidden" value="0" name="loginType" /> 
     <input type="hidden" value="__t" id="hdCkn" /> 
     <input type="hidden" value="10080" id="hdCke" /> 
     <input type="hidden" value="yingsheng.com" id="hdCkd" /> 
     <input type="hidden" value="http://sso1.yingsheng.com/sso-login.htm?from=http%3A%2F%2Fi.yingsheng.com%2Forderlist-1.html" id="hdGoto" /> 
     <div class="back_index"> 
      <a href="index.html">返回首页<i></i></a> 
     </div> 
     </ol>
    </div>
   </div> 
  </div>
 </div>
  <script src="../../../resources/static/js/login.js"></script>
  <script>
   var app=new Vue({
    el:"#app",
    data:{
  userInfo:{},
     message:''
    },
    methods:{

      login:function () {
       axios.post(path+"login",this.userInfo).then(res=>{
        if(res.data.success){
         this.message='';
         var token=res.data.data.token;
         var loginUserinfo=res.data.data.loginUserinfo;
         var userAccount=loginUserinfo.userAccount;
         sessionStorage.setItem("token",token);
         sessionStorage.setItem("userAccount",userAccount);
         location.href="index.html";
         // var search =location.search;
         // if(search)
         // {
         //  var url=search.slice(5);
         //  location.href=url;
         // }
         // else
         // {
         //  location.href="/index3.html";
         // }
        }
         else
        {
         this.message="用户名或密码错误，请重新登录";
        }
       })

      }
    }
   });


  </script>
 </body>
</html>